function [oneperiod_all oneperiod_pd1 oneperiod_pd2 oneperiod_pd3 thrperiod_all thrperiod_pd1 thrperiod_pd2 thrperiod_pd3   ] = robustness_timing(store_suffix)





%%%
% timing of vacancy posting and teachers entering
%%%

base=['app_posting_timing.mat'];
folder='../../01_data/05_temp/model/';
savefile=fullfile(folder, base);

basedata=open(savefile); 
app_sh=basedata.app_sh;
post_sh=basedata.post_sh;
post_titleI_sh=basedata.post_titleI_sh;
post_nontitleI_sh=basedata.post_nontitleI_sh;


%%%
% restricted timing
%%%
base=['alloc_teach_est_princ_est_restr_',store_suffix,'.mat'];
basefilename=join(base);
folder='../../01_data/05_temp/model/';
savefile=fullfile(folder, basefilename);


basedata=open(savefile);

balanced_restr=basedata.balanced;


%%%
% restricted timing for non-Title I, unrestricted for title I 
%%%
base=['alloc_teach_est_princ_est_nontitleI_restr_',store_suffix,'.mat'];
basefilename=join(base);
folder='../../01_data/05_temp/model/';
savefile=fullfile(folder, basefilename);


basedata=open(savefile);

balanced_nontitleI_restr=basedata.balanced;


%%%
% restricted timing, noisy
%%%
base=['alloc_teach_est_princ_noisy_restr_',store_suffix,'.mat'];
basefilename=join(base);
folder='../../01_data/05_temp/model/';
savefile=fullfile(folder, basefilename);


basedata=open(savefile);

balanced_noisy=basedata.balanced;

%%%
% unrestricted timing
%%%
base=['alloc_teach_est_princ_est_unrestr_',store_suffix,'.mat'];
basefilename=join(base);
folder='../../01_data/05_temp/model/';
savefile=fullfile(folder, basefilename);


basedata=open(savefile);

balanced_unrestr=basedata.balanced;


%%%
% restricted timing, principal max va 
%%%
base=['alloc_teach_est_princ_va_restr_',store_suffix,'.mat'];
basefilename=join(base);
folder='../../01_data/05_temp/model/';
savefile=fullfile(folder, basefilename);


basedata=open(savefile);

balanced_va=basedata.balanced;


%%%
% restricted timing, teach max ndis
%%%
base=['alloc_teach_ndis_princ_est_restr_',store_suffix,'.mat'];
basefilename=join(base);
folder='../../01_data/05_temp/model/';
savefile=fullfile(folder, basefilename);


basedata=open(savefile);

balanced_ndis=basedata.balanced;



%%%
% restricted timing, teach max ndis, principal max va
%%%
base=['alloc_teach_ndis_princ_va_restr_',store_suffix,'.mat'];
basefilename=join(base);
folder='../../01_data/05_temp/model/';
savefile=fullfile(folder, basefilename);


basedata=open(savefile);

balanced_both=basedata.balanced;


%%%  
%  6. status quo, principal max VA, unrestricted choice sets, also compute first best 
%%%

base=['alloc_teach_est_princ_va_unrestr_',store_suffix,'.mat'];
basefilename=join(base);
folder='../../01_data/05_temp/model/';
savefile=fullfile(folder, basefilename);


basedata=open(savefile);

balanced_fb=basedata.balanced;






%%%
% collect things
%%%%

% status_quo = balanced_restr
% all_options = balanced_unrestr
% principal_va = balanced_va 
% teach_fracdis_princ_est = balanced_ndis 
% teach_fracdis_princ_va = balanced_both  
% first_best = balanced_fb 

oneperiod_all= [balanced_restr(1,9) balanced_unrestr(1,9) balanced_va(1,9) balanced_ndis(1,9) balanced_both(1,9) balanced_fb(1,9)];
oneperiod_pd1= [balanced_restr(1,11) balanced_unrestr(1,11) balanced_va(1,11) balanced_ndis(1,11) balanced_both(1,11) balanced_fb(1,11)];
oneperiod_pd2= [balanced_restr(1,12) balanced_unrestr(1,12) balanced_va(1,12) balanced_ndis(1,12) balanced_both(1,12) balanced_fb(1,12)];
oneperiod_pd3= [balanced_restr(1,13) balanced_unrestr(1,13) balanced_va(1,13) balanced_ndis(1,13) balanced_both(1,13) balanced_fb(1,13)];

thrperiod_all= [balanced_restr(1,17) balanced_unrestr(1,17) balanced_va(1,17) balanced_ndis(1,17) balanced_both(1,17) balanced_fb(1,17)];
thrperiod_pd1= [balanced_restr(1,19) balanced_unrestr(1,19) balanced_va(1,19) balanced_ndis(1,19) balanced_both(1,19) balanced_fb(1,19)];
thrperiod_pd2= [balanced_restr(1,20) balanced_unrestr(1,20) balanced_va(1,20) balanced_ndis(1,20) balanced_both(1,20) balanced_fb(1,20)];
thrperiod_pd3= [balanced_restr(1,21) balanced_unrestr(1,21) balanced_va(1,21) balanced_ndis(1,21) balanced_both(1,21) balanced_fb(1,21)];


end 